/* local-pve.css - 本地PVE对决模式样式 */

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
}

/* 游戏头部信息 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
}

.player-info, .ai-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar, .ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.player-avatar {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
}

.ai-avatar {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
}

.player-name, .ai-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.player-score, .ai-score {
    font-size: 0.9rem;
    color: #ccc;
}

/* 游戏计时器 */
.game-timer {
    text-align: center;
}

.timer-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 5px;
}

.timer-display {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 游戏区域 */
.game-area {
    position: relative;
    margin-bottom: 20px;
}

#gameCanvas {
    background: #000;
    border: 3px solid #333;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 游戏控制按钮 */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.game-controls .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 游戏覆盖层 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.overlay-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
}

.overlay-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
}

/* 难度选择器样式 */
.difficulty-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.difficulty-option {
    display: flex;
    align-items: center;
    background: rgba(52, 73, 94, 0.8);
    border: 2px solid #34495e;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.difficulty-option:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateY(-2px);
}

.difficulty-option.active {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.difficulty-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 60px;
    text-align: center;
}

.difficulty-option[data-difficulty="easy"] .difficulty-icon {
    color: #2ecc71;
}

.difficulty-option[data-difficulty="medium"] .difficulty-icon {
    color: #f39c12;
}

.difficulty-option[data-difficulty="hard"] .difficulty-icon {
    color: #e74c3c;
}

.difficulty-info h5 {
    color: #ecf0f1;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.difficulty-info p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 难度说明栏样式 */
.difficulty-info {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.difficulty-info[data-difficulty="easy"] {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.difficulty-info[data-difficulty="medium"] {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.difficulty-info[data-difficulty="hard"] {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.difficulty-info[data-difficulty="extreme"] {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.3);
}

/* 游戏结果弹窗 */
.game-result {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.result-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.result-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-actions .btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .player-info, .ai-info {
        flex-direction: column;
        gap: 5px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 600px;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
    }
    
    .overlay-content, .result-content {
        padding: 25px;
        margin: 10px;
    }
    
    .overlay-content h2, .result-content h2 {
        font-size: 2rem;
    }
}